<?php


namespace app\shopConsole\service\freight;

use app\dao\shop\FreightDao;
use app\model\ShopFreight;

class FreightQueryService
{
    public function getPageListByShopId($shop_id, $page, $perPage)
    {
        $freightDao = new FreightDao();
        return  $freightDao->getListByShopId($shop_id, $page, $perPage);
    }

    public function getListByShopId($shop_id)
    {
        $freightDao = new FreightDao();
        return  $freightDao->getAll($shop_id);
    }

    public function getById($id)
    {
        $freightDao = new FreightDao();
        return  $freightDao->getById($id);
    }

}